package com.lmx.repoDomain.repository;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;

import javax.annotation.PostConstruct;

import org.springframework.stereotype.Component;

import com.lmx.common.context.ActionContextHolder;
import com.lmx.common.util.CommonUtil;
import com.lmx.repoDomain.tmodel.Keepalive;
import com.lmx.repoDomain.tmodel.NursingProjectServiceItem;

import io.katharsis.queryParams.QueryParams;
import io.katharsis.repository.annotations.JsonApiFindAll;
import io.katharsis.repository.annotations.JsonApiResourceRepository;

/*
 * 保持连接的帮助类
 * @author liangmuxue
 */

@JsonApiResourceRepository(Keepalive.class)
@Component
public class KeepaliveRepository extends BaseRepository<Keepalive> {
    @PostConstruct
    public void init() {
        dslJpaService.setEntityClass(Keepalive.class);
    }
    @Override
    @JsonApiFindAll 
    public Iterable<Keepalive> findAll(final QueryParams requestParams) {
        String action = ActionContextHolder.getContext().getAction();
        //返回空数组即可
        ArrayList<Keepalive> itemList = new ArrayList<Keepalive>();
        return itemList;
    }
}
